<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.LinkedList" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.google.appengine.api.datastore.Key" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<%@ page import="vrp.PMF" %>

<%!
public String writeSelect(String name, String value, String[] listValue, String[] listDisplay) {
	String myString = "<select name=\"" + name + "\">";
	for (int i=0;i<listValue.length;i++) {
		myString += "<option value=\"" + listValue[i] + "\"";
		if (listValue[i].equals(value)) {
			myString += " selected";
		}
		myString += ">" + listDisplay[i] + "</option>";
	}
	myString += "</select>";
	return myString;
}

public String writeSwitch(String value, String[] listValue, String[] listDisplay) {
	for (int i=0;i<listValue.length;i++) {
		if (listValue[i].equals(value)) {
			return listDisplay[i];
		}
	}
	return "Value Not Defined";
}
%>

<!DOCTYPE HTML>

<html>
	<head>
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
		<link type="text/css" rel="stylesheet" href="/stylesheets/jquery-ui-1.8.11.css" />
		<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=SG"></script>
	    <script type="text/javascript" src="/scripts/jquery-1.4.2.min.js"></script>
	    <script type="text/javascript" src="/scripts/jquery-ui-1.8.11.min.js"></script>
	    <script type="text/javascript" src="/scripts/main.js"></script>
	</head>
	<body>
		<div style="width: 100%; text-align: center; padding: 10px;">
			<b>Sales and Deliveries Management System</b>
		</div>
		<span class="preload1"></span>
		<span class="preload2"></span>
		
		<ul id="nav">
		    <li class="top"><a href="/home.jsp" class="top_link"><span>Home</span></a></li>
		    <li class="top"><a href="/whproviders.jsp" class="top_link"><span>Warehouse Providers</span></a>
				<ul class="sub">
					<li><a href="/depots.jsp">Depots</a></li>
				</ul>
			</li>
		    <li class="top"><a href="/carriers.jsp" class="top_link"><span>Carriers</span></a>
				<ul class="sub">
					<li><a href="/vehicles.jsp">Vehicles</a></li>
				</ul>
			</li>
		    <li class="top"><a href="/clients.jsp" class="top_link"><span>Clients</span></a>
				<ul class="sub">
					<li><a href="/customers.jsp">Customers</a></li>
					<li><a href="/products.jsp">Products</a></li>
				</ul>
			</li>
		    <li class="top"><a href="/saleorders.jsp" class="top_link"><span>Sale Orders</span></a></li>
		    <li class="top"><a href="/deliveries.jsp" class="top_link"><span>Deliveries</span></a></li>
		    <li class="top"><a href="/plannings.jsp" class="top_link"><span>Plannings</span></a></li>
			<!-- 
			<li class="top"><a href="#nogo53" id="shop" class="top_link"><span class="down">Shop</span></a>
				<ul class="sub">
					<li><a href="#nogo54">Online</a></li>
					<li><a href="#nogo55">Catalogue</a></li>
					<li><a href="#nogo56">Mail Order</a></li>
				</ul>
			</li>
			-->
		</ul>
			